// write your code here cpp
#include <iostream>
#include <cmath>
using namespace std;

int main()
{
    int n;
    while(cin >> n)
    {
        int count = 0;
        for(int i = 2;i <= sqrt(n);i++)
        {
            if(n % i == 0)
            {
                while(n % i == 0)
                    n /= i;
                count++;
            }
        }
        if(n != 1)
            count++;
        cout << count << endl;
    }
}
